package com.ruoyi.ies.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.ies.mapper.VehicleWorkAreaMapper;
import com.ruoyi.ies.domain.VehicleWorkArea;
import com.ruoyi.ies.service.IVehicleWorkAreaService;

/**
 * 车辆工作区域Service业务层处理
 * 
 * @author July
 * @date 2023-06-15
 */
@Service
public class VehicleWorkAreaServiceImpl implements IVehicleWorkAreaService 
{
    @Autowired
    private VehicleWorkAreaMapper vehicleWorkAreaMapper;

    /**
     * 查询车辆工作区域
     * 
     * @param id 车辆工作区域主键
     * @return 车辆工作区域
     */
    @Override
    public VehicleWorkArea selectVehicleWorkAreaById(Long id)
    {
        return vehicleWorkAreaMapper.selectVehicleWorkAreaById(id);
    }

    /**
     * 查询车辆工作区域列表
     * 
     * @param vehicleWorkArea 车辆工作区域
     * @return 车辆工作区域
     */
    @Override
    public List<VehicleWorkArea> selectVehicleWorkAreaList(VehicleWorkArea vehicleWorkArea)
    {
        return vehicleWorkAreaMapper.selectVehicleWorkAreaList(vehicleWorkArea);
    }

    /**
     * 新增车辆工作区域
     * 
     * @param vehicleWorkArea 车辆工作区域
     * @return 结果
     */
    @Override
    public int insertVehicleWorkArea(VehicleWorkArea vehicleWorkArea)
    {
        return vehicleWorkAreaMapper.insertVehicleWorkArea(vehicleWorkArea);
    }

    /**
     * 修改车辆工作区域
     * 
     * @param vehicleWorkArea 车辆工作区域
     * @return 结果
     */
    @Override
    public int updateVehicleWorkArea(VehicleWorkArea vehicleWorkArea)
    {
        return vehicleWorkAreaMapper.updateVehicleWorkArea(vehicleWorkArea);
    }

    /**
     * 批量删除车辆工作区域
     * 
     * @param ids 需要删除的车辆工作区域主键
     * @return 结果
     */
    @Override
    public int deleteVehicleWorkAreaByIds(Long[] ids)
    {
        return vehicleWorkAreaMapper.deleteVehicleWorkAreaByIds(ids);
    }

    /**
     * 删除车辆工作区域信息
     * 
     * @param id 车辆工作区域主键
     * @return 结果
     */
    @Override
    public int deleteVehicleWorkAreaById(Long id)
    {
        return vehicleWorkAreaMapper.deleteVehicleWorkAreaById(id);
    }
}
